package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.Search;
import com.sc.nft.entity.SearchRelevance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 搜索配置关联(SearchRelevance)表数据库访问层
 *
 * @author 王伟成
 * @since 2024-03-07 17:21:05
 */
public interface SearchRelevanceMapper extends BaseMapper<SearchRelevance> {

    /**
     * 通过藏品id获取关联属性的id
     *
     * @param id
     * @return
     */
    Search getByCollectionId(@Param("id") Long id);

    /**
     * 批量新增
     *
     * @param searchRelevanceList
     */
    void insertBatch(List<SearchRelevance> searchRelevanceList);
}
